package com.lzg.okrx.adapter

import com.lzy.okgo.adapter.AdapterParam
import com.lzy.okgo.adapter.Call
import com.lzy.okgo.adapter.CallAdapter

import io.reactivex.Completable

class CompletableResponse<T> : CallAdapter<T, Completable> {

    override fun adapt(call: Call<T>, param: AdapterParam): Completable =
        ObservableResponse<T>()
            .adapt(call, param)
            .ignoreElements()

}
